From 450f5b5b9e64c3afccc49fdec6af5b768cedaded Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sun, 1 Jul 2007 22:10:13 +0100 Subject: [PATCH] xend: Don't allow migrate with assigned PCI devs. This can potentially cause a whole machine crash, which I think has been seen in the wild. The case in the wild was caused by xendomains auto-resuming domains on reboot, so it wasn't even operator error. There's no sane way to migrate or suspend domains with PCI devs, so I disallow it completely. Signed-off-by: Mark Williamson --- tools/python/xen/xend/server/pciif.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/python/xen/xend/server/pciif.py b/tools/python/xen/xend/server/pciif.py index 68af9d78cc..90b2420230 100644 --- a/tools/python/xen/xend/server/pciif.py +++ b/tools/python/xen/xend/server/pciif.py @@ -185,3 +185,6 @@ class PciController(DevController): def waitForBackend(self,devid): return (0, "ok - no hotplug") + + def migrate(self, config, network, dst, step, domName): + raise XendError('Migration not permitted with assigned PCI device.') -- 2.30.2